import java.util.Scanner;

public class text_7 {
    public static void main(String[] args) {
        System.out.println("输入四位数字");
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=a%10;
        int c=a/10%10;
        int d=a/100%10;
        int e=a/1000%10;
        int f=b+c+d+e;
        System.out.println("总和"+f);
        if (f > 24) {
            System.out.println("恭喜您中奖了，获得彩电一台");
        }else if (f>20){
            System.out.println("恭喜您中奖了，获得电吹风一台");
        }else if (f>16){
            System.out.println("恭喜您中奖了，获得餐巾纸一包");
        }else{
            System.out.println("下次继续努力");
        }

        }


    }

